package com.example.steamricerake;

import com.example.steamricerake.R;
import com.example.steamricerake.R.raw;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.MediaController;
import android.widget.VideoView;

public class a extends Activity {
	
	private VideoView mv;
	private Button fanhui;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.a);
		 mv=(VideoView)findViewById(R.id.mv);
		 fanhui=(Button)findViewById(R.id.fanhui);
		 mv.setVideoURI(Uri.parse("android.resource://com.example.steamricerake/"+R.raw.vide));
		 mv.setMediaController(new MediaController(this));
		 mv.requestFocus();
		 
		 fanhui.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				 Intent intent = new Intent();
	                intent.setClass(a.this, MainActivity.class);
	                startActivity(intent);	
			}
		});
	}

}
